delete __dirname
delete __filename
ActiveXObject = undefined

window = global

window.top = window
window.name = ''
window.addEventListener = function (res) {
    console.log('window中的addEventListener：', res)
}
window.self = window
window.DOMParser = function (res) {
    console.log('window.DOMParser:', res);
}
window.localStorage = {
    "__#classType": "localStorage",
    removeItem: function (res) {
        console.log('window..localStorage.removeItem:', res);
    },
    getItem: function (res) {
        console.log('window.localStorage.getItem:', res);
        if (res == '_$rc') {
            return "02aqvHXRiqGUZXivYoXBa5m9D3WEz4gK.sAC7A_NzGRU4eGi_x4UAR28j4.8KfjziWWPHhQis5hS7bC3Y6cWindyvhKnsQemCkSN2hK0xy7g_DlhV_caov_bxEpN2akNPr2RF_Nf6dqwKFdWTkDUTdwoSA5PKNucmsc6iurwX5bm9AJCmdc2PuDf8GV6TtpoaTZEsQ9L.K9NfB1xAV_yM756MWueKuy2bVK5H4fwD5xD_WtVgGqxfjqtDS2EIBE0Rgf.JVJPf20EhzKUDA5aQYpjRNM_Gkk0Kt0X0Aac3rOU1sFvC.d5scoajQpLxAByklCbL5C_iHH4j4SHzmvh1w18RHeA9n5ICzZeKxPeHaFXfIYxKQ3Gq9mBwayuLjfMldT1KgdoVKPCLV9EDSFGexvc2yM.ATQgEwQZyhnSu3Jo63_H7tJMmUOwMziOClr1rLDotfn_T1jmld0D8Vx435Li6lyCTlqqKJ.4.7QGmr0ib2mLyNT8ShYQ_9F51F5Iieu4YjWwResnPxdWrxvf2SrQA31Mtp.ihOW01FuN7ktUV3sw7WDFVu.dk41nXuzyEpulnsQ98lSBjgDCAN3xHqxdeeIj.gOkA3BtsudGOJcrCyJU11orowZYZa8QeNsYhUnSDrJVWsX0OZRPBtuAP_C4OCUCNKJfKWvA3tiV6s1rkeueSXZz6PLinqmm_io91fLk5W4ugz7yvXoUEnGe2zIDSZtHrCjl8go6Gq"
        }
        if (res == '$_YWTU') {
            return "lVFWTFVRyhFbPX24A4yRwffa_tQRdKv.3rrQpvRkzX0"
        }
        if (res == '$_YVTX') {
            return "Wq"
        }
    },
    setItem: function (res1, res2) {
        console.log('window.localStorage.setItem:', res1, res2);
    },
    length: 5
}

window.sessionStorage = {
    getItem: function (res) {
        console.log('window.sessionStorage.getItem:', res);
        if (res == '_$rc') {
            return null;
        }
        if (res == '$_YWTU') {
            return "lVFWTFVRyhFbPX24A4yRwffa_tQRdKv.3rrQpvRkzX0";
        }
        if (res == '$_YVTX') {
            return "Wq";
        }
    },
    setItem: function (res1, res2) {
        console.log('window.sessionStorage.setItem:', res1, res2);
    },
    removeItem: function (res) {
        console.log('window..sessionStorage.removeItem:', res);
    },
    length: 2
}
window.name = ''
window.indexedDB = {
    open: function (res) {
        console.log('IDBFactory中的open：', res)
        if (res == 'EkcP') {
            return {
                onerror: null,
                onupgradeneeded: null,
                onsuccess: null
            }
        }
    }
}
window.XMLHttpRequest = function (res) {
    console.log('window.XMLHttpRequest:', res);
}
window.open = function (res) {
    console.log('window.open:', res);
}
window.parseFloat = function (res) {
    console.log('window.parseFloat:', res);
    if (res == "11.678") {
        return 11.678
    }
}
window.webkitPersistentStorage = {}
window.Request = function (res) {
    console.log('window.Request:', res);
}
window.fetch = function (res) {
    console.log('window.fetch:', res);
}
window.MutationObserver = function (res) {
    console.log('window.MutationObserver:', res);
    return {
        observe: function (res) {
            console.log('MutationObserver.observer:', res);
        }
    }
}
window.webkitRequestFileSystem = function (res) {
    console.log('window.webkitRequestFileSystem:', res);
}
window.TEMPORARY = 0
window.$b_setup = function (res) {
    console.log('window.$b_setup:', res);
}

location = {
    "ancestorOrigins": {},
    "href": "https://www.nmpa.gov.cn/datasearch/home-index.html",
    "origin": "https://www.nmpa.gov.cn",
    "protocol": "https:",
    "host": "www.nmpa.gov.cn",
    "hostname": "www.nmpa.gov.cn",
    "port": "",
    "pathname": "/datasearch/home-index.html",
    "search": "",
    "hash": ""
}
div = {
    getElementsByTagName: function (res) {
        console.log('div中的getElementsByTagName：', res)
        if (res === 'i') {
            return {}
        }

    }
}
script = {
    0: {},
    1: {}
}
meta = [
    {
        http_equiv: 'Content-Type',
        content: 'text/html; charset=utf-8'
    },
    {
        getAttribute: function (res) {
            console.log('meta中的getAttribute：', res)
            if (res === 'r') {
                return 'm'
            }
        },
        parentNode: {
            removeChild: function (res) {
                console.log('meta中的removeChild：', res)
                // return content
            }
        },
        content: "content_code"
    }
]
document = {
    documentElement: {
        style: {},
        getAttribute: function(res) {
            console.log('documentElement中的getAttribute：', res)
            if(res == 'selenium'){
                return null;
            }else if(res == 'driver'){
                return null;
            }else if(res == 'webdriver'){
                return null;
            }else{
                return null;
            }
        }
    },
    createElement: function (res) {
        console.log('document中的createElement：', res)
        if (res === 'div') {
            return div
        }
        if (res === 'a') {
            return {length:0}
        }
        if(res == 'form'){
            return {id:"",action:""}
        }
        if(res == 'input'){
            return {id:""}
        }
    },
    createExpression: function (res) {
        console.log('document中的createExpression：', res)
        if (res == "//html") {
            return {}
        }
    },
    getElementById: function (res) {
        console.log('document中的getElementById：', res)
        if (res === 'root-hammerhead-shadow-ui') {
            return null
        }
    },
    getElementsByTagName: function (res) {
        console.log('document中的getElementsByTagName：', res)
        if (res === 'script') {
            return script
        }
        if (res === 'meta') {
            return meta
        }
        if (res === 'base') {
            return {length: 0}
        }
    },
    appendChild: function (res) {
        console.log('document中的appendChild：', res)
    },
    removeChild: function (res) {
        console.log('document中的removeChild：', res)
    },
    addEventListener: function (res) {
        console.log('document中的addEventListener：', res)
    },
}


navigator = {
    userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36',
    webkitPersistentStorage: {},
    languages: ['zh-CN'],
    mimeTypes: {
        "0": {},
        "1": {},
        length: 2
    },
    webdriver: false,
    appVersion: "5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
    getBattery: function (res) {
        return {
            then: function (res) {
                console.log('navigator中的getBattery：', res)
            }
        }
    }
}

window.clientInformation = navigator

setInterval = function () {
}
setTimeout = function () {
}


ts_code

func_code

function get_cookie() {
    return document.cookie
}


